<%@ page language="java" contentType="text/html; charset=UTF-8"
	isELIgnored="false" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ taglib uri="/mytag" prefix="yjd"%>
<div class="wrap">
	<div class="nav">
		<div class="return">
			<a href='<yjd:url url="/db/biTableInfo/list"/>'>返回上一级</a>
		</div>
	</div>
	<form method="post" action='<yjd:url url="/db/biTableInfo/save"/>' class="J_ajaxForm" autocomplete="off">
		<input type="hidden" name="id" value="${biTableInfoModel.id }">
		<div class="h_a">${empty biTableInfoModel?"添加":"修改" }表信息</div>
		<div class="table_full">
			<table width="100%">
				<tr>
					<th width="100">所属数据源</th>
					<td>
					<select	name="database_info_id" class="mr10">
						<c:forEach items="${requestScope.biDatabaseInfoModels }" var="item">
						<option ${biTableInfoModel.database_info_id==item.id?"selected='selected'":"" } value="${item.id }">${item.title }</option>
						</c:forEach>
					</select>
					</td>
				</tr>
				<tr>
					<th>表名</th>
					<td><input name="table_name" type="text" maxlength="30" class="input length_6"
						value="${biTableInfoModel.table_name }">
						</td>
				</tr>
				<tr>
					<th>主键</th>
					<td><input name="pk_field_name" type="text" maxlength="100" class="input length_6"
						value="${biTableInfoModel.pk_field_name }"></td>
				</tr>
				<tr>
					<th>备注</th>
					<td><textarea name="description" maxlength="500" class="input length_8">${biTableInfoModel.description }</textarea></td>
				</tr>
			</table>
		</div>
		<div class="btn_wrap">
			<div class="btn_wrap_pd">
				<button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">提交</button>
			</div>
		</div>
	</form>
	<!-- end -->
</div>